package com.platform.qujia.handle;


import com.platform.qujia.pojo.PayOrder;

import java.util.Arrays;
import java.util.List;

/**
 * 创建订单时，dzk cdk dkq 这几种订单 不支持开票
 * 自定义支付方式订单 也不支持开票，但 单独设置属性
 * */
public class PayOrderHandle {

    public static void setPayOrderInvoiceStatus(PayOrder payOrder){
        List<String> payTypeList = Arrays.asList("dzk","cdk","dkq");
        if(payTypeList.contains(payOrder.getPayType())){
            payOrder.setInvoiceStatus(3);
        }
    }
}
